<template>
  <div class="common-layout">
    <div class="header">
      <h1>无人教室</h1>
    </div>
    <div class="layout-container">
      <div class="left">
        <el-descriptions title="课程信息">
          <el-descriptions-item label="方案">入场安全教育</el-descriptions-item>
          <el-descriptions-item label="课程">10章</el-descriptions-item>
          <el-descriptions-item label="时长">1小时20分</el-descriptions-item>
        </el-descriptions>
        <h2>参与与培训人员</h2>
        <div class="participants">
          <div class="participant" v-for="i in 10" :key="i">张三</div>
        </div>
      </div>
      <div class="center">
        <div class="video-area">视频抓拍区</div>
      </div>
      <div class="right">
        <h2>已签到人员</h2>
        <div class="attendees">
          <div class="attendee" v-for="i in 5" :key="i">张三</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 这里可以添加相关的逻辑
</script>

<style scoped lang="scss">
.common-layout {
  background-color: #1e1e2f;
  color: white;
  padding: 20px;
  height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.layout-container {
  display: flex;
  justify-content: space-between;
  height: calc(100% - 60px); /* 减去头部高度 */
}

.left, .right {
  width: 25%;
  background-color: #2a2a3b;
  padding: 20px;
  border-radius: 8px;
}

.center {
  width: 50%;
  background-color: #2a2a3b;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-area {
  width: 100%;
  height: 300px;
  background-color: #3a3a4b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participants, .attendees {
  display: flex;
  flex-direction: column;
}

.participant, .attendee {
  background-color: #3a3a4b;
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}
</style>